package com.dgut.czqqq.exp03.service;

import com.dgut.czqqq.exp03.pojo.DataVo;
import com.dgut.czqqq.exp03.pojo.VirusData;
import org.apache.commons.csv.CSVRecord;
import org.springframework.core.io.Resource;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;


public interface CsvService {

    public void getInputStream(); //获取文件的输入流

    public void getCsv(Resource body); //解析CSV文件

    public VirusData getDetailData(CSVRecord record); // 获取CSV文件每一行数据

    public DataVo getDataVo(List<VirusData> list); //将数据包装成DataVo返回给控制器

    public String resolveCsvGetGlobalNum() throws IOException; //对应控制器的获取全球新冠肺炎确诊情况方法

    public String resolveCsvGetOneCountryNum(String countryName) throws IOException;//对应控制器的获取某国新冠肺炎确诊情况方法

}
